package ly.count.ohos.demo;

import ly.count.ohos.sdk.Countly;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.global.configuration.Configuration;
import ohos.utils.net.Uri;

public class AbilityExampleDeepLinkB extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        setUIContent(ResourceTable.Layout_ability_example_deep_link_b);

        Intent i = getIntent();
        String action = intent.getAction();
        Uri data = i.getUri();

        Countly.sharedInstance().onStart(this);
    }

    @Override
    public void onStop() {
        Countly.sharedInstance().onStop();
        super.onStop();
    }

    @Override
    public void onConfigurationUpdated(Configuration configuration) {
        super.onConfigurationUpdated(configuration);
        Countly.sharedInstance().onConfigurationChanged(configuration);
    }
}
